package ModelLayer;
/**
 * The Supplier class holds information about a supplier.
 * This class is not complete, but only created to make it possible to add a supplier to an item.
 * 
 * @author Mie P., Anna K., Anders A.P., Danny M.P., Jakob K.  
 * @version 1.0 
 */
public class Supplier {

    private static int counter;
    private int        supplierID;
    private String     companyName;

    /**
     * Constructor for objects of class Supplier
     *
     * @param   companyName     name of the company.
     */
    public Supplier(String companyName) {

        ++counter;
        supplierID = counter;
        this.companyName = companyName;

    }

    /**
     * Returns the supplierID field to the caller.
     *
     * @return  supplierID  supplier ID as an integer value.  
     */
    public int getSupplierID() {

        return supplierID;

    }

    /**
     * Sets a value of the supplierID field.
     *
     * @param   supplierID   supplier ID as an integer value.
     */  
    public void setSupplierID(int supplierID) {

        this.supplierID = supplierID;

    }

    /**
     * Returns the companyName field to the caller.
     *
     * @return  companyName  the company name.  
     */
    public String getCompanyName() {

        return companyName;

    }

    /**
     * Sets a value of the companyName field.
     *
     * @param   companyName   the company name.
     */  
    public void setCompanyName(String companyName) {

        this.companyName = companyName;

    }
    
}